package com.oystertech.sportcms.common.constant;

import java.util.ArrayList;
import java.util.List;

/**
 * Security 常量
 *
 * @author haoxr
 * @since 2023/03/24
 */
public interface SecurityConstants {

	/**
	 * 登录接口路径
	 */
	String LOGIN_PATH = "/api/v1/auth/login";

	/**
	 * Token 前缀
	 */
	String TOKEN_PREFIX = "Bearer ";

	/**
	 * 请求头Token的Key
	 */
	String TOKEN_KEY = "Authorization";

	/**
	 * 验证码缓存前缀
	 */
	String VERIFY_CODE_CACHE_PREFIX = "AUTH:VERIFY_CODE:";

	/**
	 * 用户权限集合缓存前缀
	 */
	String USER_PERMS_CACHE_PREFIX = "AUTH:USER_PERMS:";

	/**
	 * 黑名单Token缓存前缀
	 */
	String BLACK_TOKEN_CACHE_PREFIX = "AUTH:BLACK_TOKEN:";

	/**
	 * 证件号加解密方法
	 */
	String ID_CARD_ENCRYPT_METHOD = "AES-128-CBC";

	/**
	 * 证件号加解密向量
	 */
	String ID_CARD_ENCRYPT_IV = "9TCla/8mY3x+SLfo";

	/**
	 * 证件号加解密密钥
	 */
	String[] ID_CARD_ENCRYPT_KEY = new String[]{"", "y1/Em$P&4|+Z-7~i", "$>9e,7C?fv%MhJ2a", "H!hd+2Kj8:xE|4U3", "M\\p&j^Sh?pK67c@z", "f/k3X|r1w_5P@Un!", "~T:m8*a&r+/4H.v>"};
}
